package org.rabbit.mq.springbootrabbitconsumer;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: zhs
 * @Date: 2021/6/10 16:29
 * @Description:
 */
//@Component
public class RabbitMQListener {

    @RabbitListener( queues = "boot_queue")
    public void listenerQueue(Message message){
        System.err.println(message);
    }

}
